package cn.silver.framework.mybatis.service;

import cn.silver.framework.mybatis.bean.BusBean;
import cn.silver.framework.mybatis.bean.PageModel;
import cn.silver.framework.mybatis.domain.BusEntity;
import cn.silver.framework.mybatis.param.BusParam;
import cn.silver.framework.openapi.model.ResultPage;

import java.util.Collection;

public interface IBusService<T extends BusEntity, P extends BusParam, V extends BusBean> extends IBaseService<T, P, V> {

    /**
     * 分页查询数据
     *
     * @param page 分页参数
     * @param params 查询条件
     * @return
     */
    ResultPage<V> selectRecycle(PageModel page, P params);

    int remove(String id);

    int removeBatch(Collection<String> ids);

    int restore(String id);

    int restoreBatch(Collection<String> ids);
}
